<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:v="urn:schemas-microsoft-com:vml">
	<head>
		
		<title><s:property value='%{getText("path_edit_title")}' /></title>

		<link href="/SCMDB/style/SuperEdit.css" rel="stylesheet"
			type="text/css" />

		<script type="text/javascript" src="/SCMDB/js/buildMap.js"></script>
		<script type="text/javascript" src="/SCMDB/js/Super.js"></script>
		<script type="text/javascript" src="/SCMDB/path/js/setPath.js"></script>
		<style type="text/css">
v\: * {
	BEHAVIOR: url(#default#VML);
	display: inline-block;
}

#popu {
	display: none;
	overflow: auto;
	position: absolute;
	width: 80px;
	height: 45px;
	border: 1px solid #689cc9;
	background: #f7fdff;
	top: 35px;
	left: 0px;
	z-index: 150;
}

#popu a {
	display: block;
	width: 80px;
	height: 20px;
	border: 0px solid red;
	text-align: center;
	line-height: 22px;
	cursor: pointer;
}

#popu .overOut {
	width: 80px;
	height: 20px;
}

#popu .overIn {
	background: url(/SCMDB/images/selectHover.gif) no-repeat -2px 0px;
	width: 80px;
	height: 20px;
}

#popu p {
	border: 0px solid red;
	margin: 0px 0;
	padding: 0px;
	width: 80px;
	height: 20px;
}
</style>
<script type="text/javascript">
window.onload=function(){
	<s:iterator id="read" status="u" value="#request.listRead">
	var currentDiv = document.createElement("DIV");
	currentDiv.setAttribute("id", "read" + '${read.lrmID}');
	currentDiv.setAttribute("title", "读头号："+'${map.mapAddr}');
	currentDiv.style.background = "url(/SCMDB/images/reader.gif) no-repeat";
	currentDiv.style.position = "absolute";
	currentDiv.style.border = "0px solid #000";
	currentDiv.style.cursor = "pointer";
	currentDiv.style.margin = "0px";
	currentDiv.style.height = "16px";
	currentDiv.style.width = "16px";
	currentDiv.style.padding = "0px";
	currentDiv.style.left = '${read.lrmX}' + "px";
	currentDiv.style.top = '${read.lrmY}' + "px";
	currentDiv.style.zIndex = "200";
	currentDiv.oncontextmenu=new Function("return false;");
	mainDiv.appendChild(currentDiv);
	</s:iterator>
	parePaht();
}
</script>
	</head>
	<body oncontextmenu="return false;">
		<s:form action="pathAction!editPath" theme="simple" method="post"
			onsubmit="return false;">
			<s:hidden name="entity.path" id="path"></s:hidden>
			<s:hidden name="entity.id" id="path"></s:hidden>
			<div class="main" oncontextmenu="return false;">
				<div id="mainDiv" oncontextmenu="return false;">
					<script language="JavaScript">
			<s:iterator id="map" status="u" value="#request.listMap">
				//buildMap('${map.mapName}','${map.mapAddr}',${map.mapWidth},${map.mapHeight},"mainDiv");
				_buildAllMap();
			</s:iterator>
			</script>
					<div id="popu">
						<p onmouseover="overIn(this)" onmouseout="overOut(this)">
							<a onclick="delePos()"><s:property value='%{getText("path_new_p1")}' /></a>
						</p>
						<p onmouseover="overIn(this)" onmouseout="overOut(this)">
							<a onclick="popuDisplay()"><s:property value='%{getText("path_new_p2")}' /></a>
						</p>
					</div>
				</div>

			</div>
		</s:form>

	</body>
</html>
